<template>
  <div>
    <hpro-help title="优惠券和红包 差异说明" :desc="desc">
      <!-- <div class="hui-p-1">
        <el-table :data="desc" border stripe>
          <el-table-column label="类型" prop="type"></el-table-column>
          <el-table-column label="添加到微信卡包" prop="wexinCard">
            <template slot-scope="scope">
              <el-tag type="success" size="small" v-if="scope.row.weixinCard">支持</el-tag>
              <el-tag type="danger" size="small" v-else>不支持</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="随机金额">
            <template slot-scope="scope">
              <el-tag type="success" size="small" v-if="scope.row.randomPrice">支持</el-tag>
              <el-tag type="danger" size="small" v-else>不支持</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="券类型">
            <template slot-scope="scope">
              <el-tag size="small" v-for="item in scope.row.cardType" :key="item">{{ item }}</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="适用门店">
            <template slot-scope="scope">
              <el-tag type="success" size="small" v-if="scope.row.locationLimit">支持</el-tag>
              <el-tag type="danger" size="small" v-else>不支持</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="适用门槛">
            <template slot-scope="scope">
              <el-tag type="success" size="small" v-if="scope.row.leastCost">支持</el-tag>
              <el-tag type="danger" size="small" v-else>不支持</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="部分商品适用">
            <template slot-scope="scope">
              <el-tag type="success" size="small" v-if="scope.row.acceptCategory">支持</el-tag>
              <el-tag type="danger" size="small" v-else>不支持</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="部分时段适用">
            <template slot-scope="scope">
              <el-tag type="success" size="small" v-if="scope.row.timeLimit">支持</el-tag>
              <el-tag type="danger" size="small" v-else>不支持</el-tag>
            </template>
          </el-table-column>
        </el-table>
      </div> -->
    </hpro-help>

    <router-view/>
  </div>

</template>

<script>
export default {
  data () {
    return {
      desc: [
        '优惠券可以同步到微信卡包，红包不可同步到微信卡包',
        '优惠券不可设定随机面额，红包可设定成限定范围随机面额、限定种类随机面额',
        '优惠券包含“折扣券、代金券、兑换券、团购券、其他”五种类型，红包仅限减钱(或满减)',
        '可以理解成，红包是功能玩法更丰富的代金券'
      ]
      // desc: [
      //   {
      //     type: '优惠券',
      //     weixinCard: true,
      //     randomPrice: false,
      //     cardType: ['折扣券', '代金券', '兑换券', '团购券', '其他'],
      //     locationLimit: true,
      //     leastCost: true,
      //     acceptCategory: true,
      //     timeLimit: true
      //   },
      //   {
      //     type: '美味红包',
      //     weixinCard: false,
      //     randomPrice: true,
      //     cardType: ['抵扣消费金额'],
      //     locationLimit: true,
      //     leastCost: true,
      //     acceptCategory: true,
      //     timeLimit: true
      //   }
      // ]
    }
  }
}
</script>
